import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {
        int c;
        while ((c = System.in.read()) != -1) {
            if (c == '/') {
                int s = System.in.read();
                if (s == '*') {
                    int m, n;
                    m = System.in.read();
                    n = System.in.read();
                    while (m != '*' || n != '/') {
                        m = n;
                        n = System.in.read();
                    }
                } else {
                    System.out.write(c);
                    System.out.write(s);
                }
            } else if (c == '\'' || c == '"') {
                System.out.write(c);
                int s, k;
                while ((s = System.in.read()) != c) {
                    System.out.write(s);
                    if (s == '\\') {
                        k = System.in.read();
                        System.out.write(k);
                    }
                }
                System.out.write(s);
            } else {
                System.out.write(c);
            }
        }
        System.out.flush();
    }
}